.people-list {
  .breadcrumb {
    border-bottom: 1px solid #eee;
  }

  .main-content {
    margin-top: 20px;
  }

  .sidebar {
    .sidebar-cta {
      margin-bottom: 20px;
      padding: 15px;
      text-align: center;
      width: 100%;
    }

    li {
      margin-bottom: 7px;
      @if $htmldir == ltr {
        padding-left: 15px;
      } @else {
        padding-right: 15px;
      }
      position: relative;

      &.selected::before {
        color: #999;
        content: '>';
        left: 0;
        position: absolute;
      }

      .number-contacts-per-tag {
        @if $htmldir == ltr {
          float: right;
        } @else {
          float: left;
        }
      }
    }
  }

  .list {
    border: 1px solid #eee;
    border-radius: 3px;
  }

  .clear-filter {
    border: 1px solid #eee;
    position: relative;
    padding: 6px;
    border-radius: 3px;

    a {
      position: absolute;
      @if $htmldir == ltr {
        right: 10px;
      } @else {
        left: 10px;
      }
    }
  }

  .people-list-item {
    border-bottom: 1px solid #eee;
    padding: 10px;

    &:hover {
      background-color: #f7fbfc;
    }

    &.sorting {
      background-color: #f6f8fa;
      position: relative;
      padding: 10px;

      .options {
        display: inline;
        position: absolute;
        @if $htmldir == ltr {
          right: 10px;
        } @else {
          left: 10px;
        }

        .dropdown-btn {
          &:after {
            content: '\f0d7';
            font-family: FontAwesome;
            margin-left: 5px;
          }
        }

        .dropdown-item {
          padding: 3px 20px 3px 10px;

          &:before {
            content: '\f00c';
            font-family: FontAwesome;
            margin-right: 5px;
            color: #fff;
          }

          &:hover {
            background-color: #0366d6;
            color: #fff;
          }

          &.selected {
            &:before {
              color: #999;
            }
          }
        }
      }
    }

    .avatar {
      background-color: #93521e;
      border-radius: 3px;
      color: #fff;
      display: inline-block;
      font-size: 15px;
      height: 43px;
      margin-right: 5px;
      padding-top: 10px;
      vertical-align: middle;
      width: 43px;
      @if $htmldir == ltr {
        padding-left: 5px;
      } @else {
        padding-right: 5px;
      }

      &.one-letter {
        padding-left: 0;
        text-align: center;
      }
    }

    img {
      border-radius: 3px;
      margin-right: 5px;
    }

    a {
      color: #333;
      text-decoration: none;

      &:hover {
        background-color: transparent;
        color: #333;
      }
    }

    .people-list-item-information {
      color: #999;
      font-size: 12px;
      font-style: italic;
      position: relative;
      text-align: right;
      top: 16px;
      @if $htmldir == ltr {
        float: right;
      } @else {
        float: left;
      }
    }
  }
}

.blank-people-state {
  margin-top: 30px;
  text-align: center;

  h3 {
    font-weight: 400;
    margin-bottom: 30px;
  }

  .cta-blank {
    margin-bottom: 30px;
  }

  .illustration-blank {
    p {
      margin-top: 30px;
    }

    img {
      display: block;
      margin: 0 auto 20px;
    }
  }
}

.people-show {
  .pagehead {
    background-color: #f9f9fb;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-bottom: 20px;

    .people-profile-information {
      margin-bottom: 10px;
      position: relative;

      .avatar {
        background-color: #93521e;
        border-radius: 3px;
        color: #fff;
        display: inline-block;
        font-size: 30px;
        height: 87px;
        margin-right: 5px;
        padding-top: 21px;
        position: absolute;
        width: 87px;
        @if $htmldir == ltr {
          padding-left: 5px;
        } @else {
          padding-right: 5px;
        }

        &.one-letter {
          padding-left: 0;
          text-align: center;
        }
      }

      img {
        border-radius: 3px;
        position: absolute;
      }

      h3 {
        display: block;
        font-size: 24px;
        font-weight: 300;
        margin-bottom: 0;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        width: calc(100% - 245px);
        @if $htmldir == ltr {
          padding-left: 100px;
          margin-right: -9999px;
        } @else {
          padding-right: 100px;
          margin-left: -9999px;
        }
      }

      @media (max-width: 480px) {
        h2 {
          width: 100%;
        }
      }

      .profile-detail-summary {
        margin-top: 3px;
        @if $htmldir == ltr {
          padding-left: 100px;
        } @else {
          padding-right: 100px;
        }

        li {
          &:not(:last-child) {
            @if $htmldir == ltr {
              margin-right: 10px;
            } @else {
              margin-left: 10px;
            }
          }
        }
      }

      #tagsForm {
        @if $htmldir == ltr {
          padding-left: 100px;
        } @else {
          padding-right: 100px;
        }
        position: relative;

        #tags_tagsinput {
          height: 40px!important;
          min-height: 40px!important;
          width: 370px!important;
          display: inline-block;
          overflow: hidden;
        }

        .tagsFormActions {
          display: inline;
          position: relative;
          top: -17px;
        }

        #tags_tag {
          width: 150px !important;
          @if $htmldir == rtl {
            float: left;
          }
        }

        #tags_addTag {
          @if $htmldir == rtl {
            float: right;
            overflow: true;
          }
        }
      }

      .tags {
        padding: 0;
        list-style: none;
        line-height: 20px;
        margin: 0;
        overflow: hidden;
        margin-top: 8px;
        @if $htmldir == ltr {
          padding-left: 100px;
        } @else {
          padding-right: 100px;
        }

        li {
          @if $htmldir == ltr {
            float: left;
          } @else {
            float: right;
          }
        }
      }
    }

    .quick-actions {
      position: absolute;
      top: 14px;

      @if $htmldir == ltr {
        right: 0;
      } @else {
        left: 0;
      }
    }
  }

  .main-content {
    background-color: #fff;
    padding-bottom: 20px;
    padding-top: 40px;

    .section-title {
      position: relative;

      h3 {
        border-bottom: 1px solid #e1e2e3;
        font-size: 18px;
        font-weight: 400;
        margin-bottom: 20px;
        padding-bottom: 10px;
        @if $htmldir == ltr {
          padding-left: 23px;
        } @else {
          padding-right: 23px;
        }
        padding-top: 10px;
        position: relative;
      }

      .icon-section {
        position: absolute;
        top: 14px;
        width: 17px;
      }
    }

    .sidebar {
      .sidebar-cta {
        a {
          margin-bottom: 20px;
          width: 100%;
        }
      }
    }
  }

  .profile {
    .sidebar-box {
      background-color: #fafafa;
      border: 1px solid #eee;
      border-radius: 3px;
      color: #333;
      margin-bottom: 25px;
      padding: 10px;
      position: relative;
    }

    .sidebar-box-title {
      margin-bottom: 4px;
      position: relative;

      strong {
        font-size: 12px;
        font-weight: 500;
        text-transform: uppercase;
      }

      a {
        position: absolute;
        right: 7px;
      }

      img {
        left: -3px;
        position: relative;
        width: 20px;

        &.people-information {
          top: -4px;
        }
      }
    }

    .sidebar-box-paragraph {
      margin-bottom: 0;
    }

    .people-list {
      li {
        margin-bottom: 4px;
      }
    }

    .people-information,
    .work,
    .introductions {
      li {
        color: #999;
        font-size: 12px;
        margin-bottom: 10px;

        &:last-child {
          margin-bottom: 0;
        }

        i {
          text-align: center;
          width: 17px;
        }
      }
    }

    .section {
      margin-bottom: 35px;

      &.kids,
      &.food-preferencies {
        .section-heading img {
          position: relative;
          top: -3px;
        }
      }

      .inline-action {
        display: inline;
        margin-left: 10px;

        a {
          margin-right: 5px;
        }
      }

      .section-heading {
        border-bottom: 1px solid #eee;
        padding-bottom: 4px;
        margin-bottom: 10px;

        img {
          width: 25px;
        }
      }

      .section-action {
        display: inline;
        float: right;
      }

      .section-blank {
        background-color: #fafafa;
        border: 1px solid #eee;
        border-radius: 3px;
        padding: 15px;
        text-align: center;

        h3 {
          font-weight: 400;
          font-size: 14px;
        }
      }
    }
  }

  .gifts {
    .gift-recipient {
      font-size: 15px;

      &:not(:first-child) {
        margin-top: 25px;
      }
    }

    .offered {
      background-color: #5cb85c;
      border-radius: 10rem;
      display: inline-block;
      font-size: 75%;
      font-weight: 400;
      line-height: 1;
      color: #fff;
      text-align: center;
      white-space: nowrap;
      vertical-align: baseline;
      padding: 2px 0;
      padding-right: .6em;
      padding-left: .6em;
    }

    .gift-list-item {
      border-top: 1px solid #eee;
      padding: 5px 0;

      &:last-child {
        border-bottom: 0;
      }
    }

    .gift-list-item-url {
      display: inline;
      font-size: 12px;
      margin-left: 10px;
      padding: 5px 0 0;
    }

    .gift-list-item-information {
      display: inline;
      margin-left: 10px;
    }

    .gift-list-item-date,
    .gift-list-item-actions {
      color: #999;
      display: inline;
      font-size: 12px;

      a {
        color: #999;
        font-size: 11px;
        margin-right: 5px;
        text-decoration: underline;
      }

      li {
        display: inline;
      }
    }

    .gift-list-item-actions {
      margin-left: 5px;
    }

    .for {
      font-style: italic;
      margin-left: 10px;
    }
  }

  .activities,
  .reminders,
  .tasks,
  .debts,
  .gifts,
  .calls {
    .date {
      color: #777;
      font-size: 12px;
      margin-right: 10px;
      width: 100px;
    }
    .pa2 li {
      list-style: inside disc;
    }

    .frequency-type,
    .value {
      background-color: #ecf9ff;
      border: 1px solid #eee;
      border-radius: 3px;
      display: inline;
      font-size: 12px;
      padding: 0 6px;
    }

    .list-actions {
      position: relative;
      text-align: center;
      width: 60px;

      a:first-child {
        margin-right: 5px;
      }

      a.edit {
        position: relative;
        top: 1px;
      }
    }

    .empty {
      font-style: italic;
    }
  }

  .reminders {
    .frequency-type {
      white-space: nowrap;
    }

    input[type='date'] {
      margin-bottom: 20px;
      width: 170px;
    }

    .form-check {
      input[type='number'] {
        display: inline;
        width: 50px;
      }
    }
  }

  .debts {
    .debts-list {
      .debt-nature {
        width: 220px;
      }
    }
  }
}

.create-people {
  .import {
    margin-bottom: 30px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .people-list {
    margin-top: 20px;

    .people-list-mobile {
      border-bottom: 1px solid $border-color;

      li {
        padding: 6px 0;
      }
    }

    .people-list-item {
      .people-list-item-information {
        display: none;
      }
    }
  }

  .people-show {
    .pagehead {
      .people-profile-information {
        margin-bottom: 20px;
        margin-top: 10px;

        h2 {
          @if $htmldir == ltr {
            padding-left: 80px;
          } @else {
            padding-right: 80px;
          }

          span {
            display: none;
          }
        }

        #tagsForm {
          display: block;
          margin-top: 40px;
          padding-left: 0;

          #tags_tagsinput {
            width: 100% !important;
          }

          .tagsFormActions {
            display: block;
            margin-top: 20px;
          }
          .tags_tag {
            width: 100% !important;
          }
        }

        .profile-detail-summary {
          padding-left: 0;
          margin-top: 10px;

          li {
            display: block;
            margin-right: 0;

            &:not(:last-child) {
              &::after {
                content: '';
                margin-left: 0;
              }
            }
          }
        }

        .avatar {
          height: 67px;
          width: 67px;
          padding-top: 11px;
        }

        .tags {
          padding-left: 80px;
        }
      }

      .edit-information {
        position: relative;
        width: 100%;
        margin-bottom: 10px;
      }
    }

    .main-content {
      &.modal {
        margin-top: 0;
      }

      &.dashboard {
        .sidebar-box {
          margin-bottom: 15px;
        }

        .sidebar-cta {
          margin-top: 15px;
        }

        .people-information-actions {
          margin-bottom: 20px;
        }
      }

      &.activities {
        .cta-mobile {
          margin-bottom: 20px;

          a {
            width: 100%;
          }
        }

        .activities-list {
          .activity-item-date {
            top: -4px;
          }
        }
      }
    }
  }

  .create-people {
    width: 100%;

    .btn {
      width: 100%;
    }
  }

  .list-add-item {
    margin-left: 0;
  }

  .inline-form {
    .task-add-title {
      width: 100%;
    }

    textarea {
      width: 100%;
    }
  }

  .box-links {
    margin-bottom: 10px;
    position: relative;
    right: 0;
    top: 0;

    li {
      margin-left: 0;
    }
  }
}
